<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>EL表达式接受请求参数Test</title>
</head>
<body>
<%
	pageContext.setAttribute("info1", "page范围的值");
	request.setAttribute("info2", "request范围的值");
	session.setAttribute("info3", "session范围的值");
	application.setAttribute("info5", "application范围的值");
%>

<!-- 
	表达式语言（Expression Language，EL）
	EL表达式取值，${key }
	可以在pageContext、request、session、application中取出对应key的属性值
	寻找值的顺序：page->request->session->application
 -->
 <h2>info1:${info1}</h2>
 <h2>info2:${info2}</h2>
 <h2>info3:${info3}</h2>
 <h2>info4:${info4}</h2>
</body>
</html>